import request from '@/utils/request'

// 查询我的队友列表
export function listTeam(query) {
  return request({
    url: '/manager/team/mylist',
    method: 'get',
    params: query
  })
}

// 查询我的队友详细
export function getTeam(userId) {
  return request({
    url: '/manager/team/' + userId,
    method: 'get'
  })
}

// 新增我的队友
export function addTeam(data) {
  return request({
    url: '/manager/team',
    method: 'post',
    data: data
  })
}

// 修改我的队友
export function updateTeam(data) {
  return request({
    url: '/manager/team',
    method: 'put',
    data: data
  })
}

// 删除我的队友
export function delTeam(userId) {
  return request({
    url: '/manager/team/' + userId,
    method: 'delete'
  })
}
